package br.ufg.modulo04.dao.factory;

import br.ufg.modulo04.dao.AnuncioDAO;

public class AnuncioDaoFactory {
	private AnuncioDAO dao;
	private static AnuncioDaoFactory factory;

	private AnuncioDaoFactory() {
		dao = new AnuncioDAO();
	}

	public static AnuncioDaoFactory getInstance() {
		if (factory == null)
			factory = new AnuncioDaoFactory();
		return factory;
	}

	public AnuncioDAO getAnuncioDao() {
		return dao;
	}
}
